package com.dragon.logical.service.auth;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.OperationAuto;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sy
 * @since 2023-07-03
 */
public interface IOperationAutoService extends IService<OperationAuto> {

    Integer addAuto(OperationAuto convert);

    void updateAuto(OperationAuto convert);

    @Transactional(rollbackFor = RuntimeException.class)
    void updateOne(HashMap hashMap);

    void deleteAuto(Integer id);

    OperationAuto selectDetailBySystemCode(String code);

    List<Object> selectDetailByCode(Integer code, HttpServletRequest request);

    List<OperationAuto> selectAllSystem();
}
